<template>
  <div id='box'>
      <div>
          <el-breadcrumb separator-class="el-icon-arrow-right">
            <el-breadcrumb-item :to="{ path: '/' }">大麦</el-breadcrumb-item>
            <el-breadcrumb-item>北京</el-breadcrumb-item>
            <el-breadcrumb-item>电影</el-breadcrumb-item>
            <el-breadcrumb-item :to="{ path: '/buyTicket' }">大型多媒体励志互动儿童剧《奇门遁甲》（11月）</el-breadcrumb-item>
          </el-breadcrumb>
        <el-row>
            <el-col :span="7">
              <div class="grid-content bg-purple buyLeft">
                <img src="../assets/dm_img/pic4.png">
              </div>
            </el-col>
            <el-col :span="10">
              <div class="grid-content bg-purple-light buy">
                <b>大型多媒体励志互动儿童剧《奇门遁甲》（11月）</b>
                <p>"奇门遁甲"</p>
                  <el-steps :active="3" :space="200" >
                    <el-step  title="项目待定" icon="el-icon-circle-check"></el-step>
                    <el-step  title="预售/预定" icon="el-icon-circle-check"></el-step>
                    <el-step  title="售票中"></el-step>
                    <el-step  title="演出开始"></el-step>
                  </el-steps>  
                  <div>
                    <p>演出时间：</P>
                    <el-radio-group v-model="radio1" size="mini">
                      <el-radio border label="1">2023-03-13 11:00:00</el-radio>
                      <el-radio border label="2">2023-03-13 15:00:00</el-radio>
                      <el-radio border label="3">2023-03-14 11:00:00</el-radio>
                      <el-radio border label="4">2023-03-14 15:00:00</el-radio>
                    </el-radio-group>
                  </div>    
                  <div>
                    <p>选择票价：</p>
                    <el-radio-group v-model="radio2" size="mini">
                      <el-radio label="1" border disabled>80元</el-radio>
                      <el-radio label="2" border>90元</el-radio>
                      <el-radio label="3" border>100元</el-radio>
                    </el-radio-group>
                  </div>
                  <button class="buySeat" @click="handle">选座购买</button>
              </div>
            </el-col>
            <el-col :span="7">
              <div class="grid-content bg-purple buyRight">
                <b>大麦网评分</b>
                <div>
                    <el-rate v-model="value" disabled show-score text-color="red" score-template="{value}">
                    </el-rate>
                    <p class="evaluate"><span class="evaluateSpan">3000+</span>人参与评价</p>
                </div>
                <div>
                  <p>演出时间</p>
                  <p>2023-03-13-2023-03-18</p>
                </div>
                <div>
                  <p>演出场馆</p>
                  <p>中国儿童中心剧院 —— 海淀</p>
                  <P>交通路线</P>
                </div>
                <div>
                  <p>票品支持</p>
                  <p>返积分</p>
                </div>
                <div>
                  <p>实票配送</p>
                  <p>同城满100.00元免运费，不满收10.00元，发货后1-3天送达</p>
                </div>
              </div>
            </el-col>
        </el-row>
      </div>

      <div>
          <el-row>
            <el-col :span="17">
              <div class="grid-content bg-purple message">
                <p><span>演出信息</span><span>精彩剧评</span><span>购买说明</span><span>付款方式</span></p>
                
                
                
            
                
                <div>
                    <h1>写评价</h1>
                    <div class="score">
                    <span>动动你的小手来为我们打分儿吧</span>
                    <div class="block">
                    <span class="demonstration"></span>
                    <el-rate v-model="value1" :texts=this.texts show-text></el-rate>
                    <!-- <span class="val">{{value1}}分</span> -->
                    </div>
                    <textarea ref="txt" cols="50" rows="5" placeholder="写个评价吧！求求你了"></textarea>
                    <button @click="comment(value1)">评价</button>
                    </div>

                <div class="pl">

                </div>

                </div>
              </div>
            </el-col>
            <el-col :span="7">
              <div class="grid-content bg-purple-light hot">
                  <p>热门推荐</p>
                  <img src="../assets/dm_img/pic4.png">
                  <p>大型多媒体励志互动儿童剧《奇门遁甲》（11月）</p>
              </div>
            </el-col>
          </el-row>    
      </div>  
  </div>
</template>

<script>
export default {
  name: "buyTicket",
  data() {
    return {
      radio1: "1",
      radio2: "2",
      value: 4.7,
      value1: null,
      texts: ["1分", "2分", "3分", "4分", "5分"]
    };
  },
  methods: {
    comment(v1) {
      var txtValue = this.$refs.txt.value;
      console.log(txtValue);
      console.log(v1);
    },
    handle(){
      this.$router.push("/seat");
    }
  },
  components: {}
};
</script>

<style scoped>
#box {
  background: #f5f5f5;
  height: 80%;
  width: 1300px;
  margin: 0 auto;
}
.el-row {
  margin-bottom: 20px;
  width: 90%;
  margin: 0 auto;
}
.el-col {
  border-radius: 4px;
}
.grid-content {
  border-radius: 4px;
  min-height: 36px;
  background: white;
}
.row-bg {
  padding: 10px 0;
  background-color: #f9fafc;
}
.buyLeft {
  padding: 15px;
  height: 435px;
}
.buy {
  text-align: left;
  padding: 15px;
  height: 435px;
}
.buyRight {
  padding: 15px;
  text-align: left;
  height: 435px;
}
.el-breadcrumb {
  height: 40px;
  line-height: 40px;
  padding-left: 100px;
}
.el-steps {
  background: #f7f7f7;
}
.buySeat {
  background: red;
  border: none;
  color: white;
  width: 150px;
  height: 40px;
  border-radius: 10px;
  margin: 10px 0px 0px 15px;
}
.evaluate {
  float: right;
  position: relative;
  top: -35px;
}
.evaluateSpan {
  color: red;
}
.buyRight div {
  border-bottom: 1px black dashed;
}
.buyRight p {
  height: 20px;
  line-height: 18px;
}
.el-rate {
  border-bottom: none;
}
.el-radio {
  margin: 10px;
}

.message {
  text-align: left;
  height: 400px;
}
.message p span {
  padding: 10px;
  display: inline-block;
  height: 20px;
  line-height: 20px;
}
.message p span:nth-child(1) {
  color: red;
  border-top: red 1px solid;
}
.el-divider {
  color: red;
}
.score {
  margin-left: 120px;
}
.score button {
  color: white;
  background: red;
  border: none;
  width: 200px;
  height: 40px;
  line-height: 40px;
  position: relative;
  top: 40px;
  left: -370px;
}
.block {
  position: relative;
  top: -20px;
  left: 280px;
}
.val {
  position: relative;
  top: -20px;
  left: 130px;
}
.hot{
  text-align: left;
}
.hot p {
  border-bottom: 1px black dashed;
}
</style>

